// import request from '../config'
import request from '../config/indexNew'

// // 设置
// export const settingsMakeGroupFriend = (data: any) => {
//   const url = '/MakeGroupFriend/Settings'
//   return request(url, data)
// }
// // 查看设置
// export const showSettingsMakeGroupFriend = (data?: any) => {
//   const url = '/MakeGroupFriend/SettingsShow'
//   return request(url, data)
// }
// // 列表
// export const getMakeGroupFriendList = (data: any) => {
//   const url = '/MakeGroupFriend/List'
//   return request(url, data)
// }
// // 新增&编辑
// export const putMakeGroupFriend = (data: any) => {
//   const url = '/MakeGroupFriend/Put'
//   return request(url, data)
// }
// // 客户群列表
// export const getCustGroupchatList = (data?: any) => {
//   const url = '/MakeGroupFriend/GroupchatList'
//   return request(url, data)
// }
// // 暂停
// export const pauseMakeGroupFriend = (data: any) => {
//   const url = '/MakeGroupFriend/Pause'
//   return request(url, data)
// }
// // 开始
// export const startMakeGroupFriend = (data: any) => {
//   const url = '/MakeGroupFriend/Start'
//   return request(url, data)
// }
// // 删除
// export const delMakeGroupFriend = (data: any) => {
//   const url = '/MakeGroupFriend/Del'
//   return request(url, data)
// }
// // 详情
// export const getMakeGroupFriendDetail = (data: any) => {
//   const url = '/MakeGroupFriend/Detail'
//   return request(url, data)
// }
// // 详情-子列表
// export const getMakeGroupFriendDetailList = (data: any) => {
//   const url = '/MakeGroupFriend/DetailList'
//   return request(url, data)
// }
// // 详情-子列表-导出
// export const exportMakeGroupFriendDetailExport = (data: any) => {
//   const url = '/MakeGroupFriend/DetailListExport'
//   return request(url, data)
// }
// 设置
export const settingsMakeGroupFriend = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Settings',
    method: 'POST',
    data
  })
}
// 查看设置
export const showSettingsMakeGroupFriend = (data?: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/settings/show',
    method: 'POST',
    data
  })
}
// 列表
export const getMakeGroupFriendList = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/List',
    method: 'POST',
    data
  })
}
// 新增&编辑
export const putMakeGroupFriend = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Put',
    method: 'POST',
    data
  })
}
// 客户群列表
export const getCustGroupchatList = (data?: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/GroupchatList',
    method: 'POST',
    data
  })
}
// 暂停
export const pauseMakeGroupFriend = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Pause',
    method: 'POST',
    data
  })
}
// 开始
export const startMakeGroupFriend = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Start',
    method: 'POST',
    data
  })
}
// 删除
export const delMakeGroupFriend = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Del',
    method: 'POST',
    data
  })
}
// 详情
export const getMakeGroupFriendDetail = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/Detail',
    method: 'post',
    data
  })
}
// 详情-子列表
export const getMakeGroupFriendDetailList = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/DetailList',
    method: 'POST',
    data
  })
}
// 详情-子列表-导出
export const exportMakeGroupFriendDetailExport = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/DetailListExport',
    method: 'POST',
    data,
    responseType: 'arraybuffer'
  })
}

/**
 * 获取预计添加好友数
 * @param data 
 * @returns 
 */
export const getEstimatedNumber = (data: any) => {
  return request({
    url: '/api/win-tool/MakeGroupFriend/expect',
    method: 'POST',
    data
  })
}